<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <span></span>
    <script>
        let date = new Date()
        let year = date.getFullYear();
        let month = date.getMonth()+1;
        let day = date.getDate();
        let body = document.querySelector('body');
        body.innerText = year+'-'+month+'-'+day;
        
    </script>
</body>
</html>